package com.jinmdz.fmis.api.model.config;

import com.jinmdz.fmis.core.base.BaseBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * application-*.properties 配置信息
 *
 * @author LiCongLu
 * @date 2019-12-31 11:37
 */
@Component("configApp")
public class ConfigApp extends BaseBean {

    /**
     * 文件上传绝对路径
     */
    @Value("${file.dir-path}")
    private String fileDirPath;

    /**
     * 上传文件访问路径
     */
    @Value("${file.url-path}")
    private String fileUrlPath;

    /**
     * mysql备份路径
     */
    @Value("${mysql.back.dir-path}")
    private String mysqlBackDirPath;

    /**
     * 殡仪馆代码
     */
    @Value("${funeral.parlour.code}")
    private String funeralParlourCode;
    /**
     * 殡仪馆代码
     */
    @Value("${rec.dispatch.enable}")
    private Boolean recDispatchEnable;

    public String getFileDirPath() {
        return fileDirPath;
    }

    public ConfigApp setFileDirPath(String fileDirPath) {
        this.fileDirPath = fileDirPath;
        return this;
    }

    public String getFileUrlPath() {
        return fileUrlPath;
    }

    public ConfigApp setFileUrlPath(String fileUrlPath) {
        this.fileUrlPath = fileUrlPath;
        return this;
    }

    public String getMysqlBackDirPath() {
        return mysqlBackDirPath;
    }

    public ConfigApp setMysqlBackDirPath(String mysqlBackDirPath) {
        this.mysqlBackDirPath = mysqlBackDirPath;
        return this;
    }

    public String getFuneralParlourCode() {
        return funeralParlourCode;
    }

    public ConfigApp setFuneralParlourCode(String funeralParlourCode) {
        this.funeralParlourCode = funeralParlourCode;
        return this;
    }

    public Boolean getRecDispatchEnable() {
        return recDispatchEnable;
    }

    public ConfigApp setRecDispatchEnable(Boolean recDispatchEnable) {
        this.recDispatchEnable = recDispatchEnable;
        return this;
    }
}
